//
//  NSMutableURLRequest+MolonAPI.m
//
//  Created by molon on 14-1-8.
//  Copyright (c) 2014年 Molon. All rights reserved.
//

#import "NSMutableURLRequest+MolonAPI.h"
#import <objc/runtime.h>

NSString * const kUserInfoKey = @"kUserInfo";

@implementation NSMutableURLRequest(MolonAPI)

- (void)setUserInfo:(NSDictionary *)dict
{
	objc_setAssociatedObject(self, &kUserInfoKey, dict, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (NSString*)userInfo
{
	return objc_getAssociatedObject(self, &kUserInfoKey);
}


@end
